package com.lm.Observer;

public class ChildrenObserver2 extends Observer{

    public ChildrenObserver2(Subject subject){
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("Children2Observer:"+subject.getState());
    }
}
